import os

import requests


def getmovieid():
    url = os.getenv('domain_url') + os.getenv('movielist_url')
    body = {"page": 1, "count": 10}
    r = requests.get(url, params=body).json()
    print("看看热门电影列表的响应体： ", r)
    # 提取电影id
    return r['result'][3]['movieId']